<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

include "../bbdd/ofertasBbdd.php";

if (eliminarOferta($_POST['oid'],$_POST['pid'])) {
    header ('Location: ../ofertas/ofertas.php?pid='.$_POST['pid'].'&uid='.$_POST['uid']);    
} else {
    echo "ERROR al eliminar la oferta";
}